// vite.config.ts
import { defineConfig } from "file:///D:/web/lgt-zi-ai-dapp/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/web/lgt-zi-ai-dapp/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import Components from "file:///D:/web/lgt-zi-ai-dapp/node_modules/unplugin-vue-components/dist/vite.mjs";
import { VantResolver } from "file:///D:/web/lgt-zi-ai-dapp/node_modules/@vant/auto-import-resolver/dist/index.esm.mjs";
import { resolve } from "path";
var __vite_injected_original_dirname = "D:\\web\\lgt-zi-ai-dapp";
var vite_config_default = defineConfig({
  server: {
    open: false,
    // 配置自动启动浏览器
    port: 11203,
    host: "0.0.0.0",
    proxy: {
      "/api": {
        target: "https://quantumai.love",
        // 后台接口域名
        changeOrigin: true,
        // 是否允许跨域
        secure: true
        // rewrite: (path) => path.replace(/^\/api/, '') // api标志替换为'
      }
    }
  },
  build: {
    outDir: "liang-zi-ai-dapp-online"
  },
  css: {
    preprocessorOptions: {
      less: {
        javascriptEnabled: true
      }
    }
  },
  plugins: [
    vue(),
    Components({
      resolvers: [VantResolver()]
    })
  ],
  resolve: {
    // 设置文件./src路径为 @
    alias: [
      {
        find: "@",
        replacement: resolve(__vite_injected_original_dirname, "./src")
      }
    ]
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFx3ZWJcXFxcbGd0LXppLWFpLWRhcHBcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkQ6XFxcXHdlYlxcXFxsZ3QtemktYWktZGFwcFxcXFx2aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbW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